<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : DistanceJointDef</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='DistanceJointDef::DistanceJointDef'>DistanceJointDef</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li><a href='JointDef.html#JointDef::JointDef'>JointDef</a></li></ul>
</section>

</section>

<section id="summary">

 Distance joint definition. This requires defining an
 anchor point on both bodies and the non-zero length of the
 distance joint. The definition uses local anchor points
 so that the initial configuration can violate the constraint
 slightly. This helps when saving and loading a game.
 Warning: Do not use a zero or short length.
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='DistanceJointDef::dampingRatio'>dampingRatio
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='DistanceJointDef::frequencyHz'>frequencyHz
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='DistanceJointDef::length'>length
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='DistanceJointDef::localAnchorA'>localAnchorA
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Vector.html#Vector::Vector'>Vector</a></code></code></span>
<span class="field-name"><code><a name='DistanceJointDef::localAnchorB'>localAnchorB
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
<h2>Constructors</h2>
<dl>
<dt>
<code><a href='DistanceJointDef.html#DistanceJointDef::DistanceJointDef'>DistanceJointDef</a>()</code>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code>void <a name='DistanceJointDef::initialize'>initialize</a>(<code><a href='Body.html#Body::Body'>Body</a></code> <a name='DistanceJointDef::initialize::b1'>b1</a>, <code><a href='Body.html#Body::Body'>Body</a></code> <a name='DistanceJointDef::initialize::b2'>b2</a>, <code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='DistanceJointDef::initialize::anchor1'>anchor1</a>, <code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='DistanceJointDef::initialize::anchor2'>anchor2</a>)</code></dt>
<dd>

 Initialize the bodies, anchors, and length using the world
 anchors.
 b1: First body
 b2: Second body
 anchor1: World anchor on first body
 anchor2: World anchor on second body
</dd>
</dl>
</section>

<footer></footer>

</body></html>
